<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>凭证字管理</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>

	</head>

	<body>
		<div id="info_all">
			<div id="info_top">
				凭证字
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="getVoucher.action" theme="simple" id="delrow"
				cssStyle="margin-top:0px;">
				<div id="btn">
					<input type="button" value="新增"
						onclick="addAction('showAddVoucher','showAddVoucher')" onfocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize">
					<input type="button" value="修改"
						onClick="updateAction('showEditVoucher','showEditVoucher')" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize" />
					<input type="button" value="删除"
						onClick="deleteAction('deleteVoucher','deleteVoucher')" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize" />
				</div>
				<div id="info_main">

					<div id="select">
						<hr>
						<table>
							<tr>

								<td>
									名称&nbsp;
								</td>
								<td>
									<s:textfield name="voucherModel.voucherName" size="12"></s:textfield>
								</td>
							</tr>
						</table>
					</div>
					<div class="sele">
						<input type="submit" value="查询" onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize">
						<input type="reset" value="重置" onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize">
						<hr>
					</div>
					<!-- 信息显示栏 -->
											<table id="info_table" width="840px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th>
										<input type="checkbox" onclick="selectAll()" />
									</th>
									<th width="100px">
										名称
									</th>
									<th width="120px">
										借方必有
									</th>
									<th width="120px">
										贷方必有
									</th>
									<th width="120px">
										借或贷必有
									</th>
									<th width="120px">
										借方必无
									</th>
									<th width="120px">
										贷方必无
									</th>
									<th width="120px">
										借和贷必无
									</th>
									<!-- 
									<th width="80px">
										是否默认
									</th>
									 -->
								</tr>
							</thead>
						</table>
					<div id="info_info1" class="rollTable">
						<table id="info_table" width="840px" cellspacing=1px
							cellpadding=1px class="sortable">
							<tbody>
								<s:iterator value="voucherList">
									<tr>
										<td width="100px">
											<s:checkbox name="rowlist" fieldValue="%{voucherId}"
												theme="simple"></s:checkbox>
										</td>
										<td width="120px">
											<s:property value="voucherName" />
										</td>
										<td width="120px">
											<s:property value="debitY" />&nbsp;
										</td>
										<td width="120px">
											<s:property value="creditY" />&nbsp;
										</td>
										<td width="120px">
											<s:property value="debitOrCreditY" />&nbsp;
										</td>
										<td width="120px">
											<s:property value="debitN" />&nbsp;
										</td>
										<td width="120px">
											<s:property value="creditN" />&nbsp;
										</td>
										<td width="120px">
											<s:property value="debitAndCreditN" />&nbsp;
										</td>
										<!-- 
										<td>
											<s:property value="isdefult" />
										</td>
										<td>
											<s:property value="" />
										</td>
										 -->
									</tr>
								</s:iterator>
							</tbody>
							<!-- 
							<tfoot>
								<tr></tr>
							</tfoot>
							 -->
						</table>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>
